

//
//  TripleImgCell.m
//  ZQLearn
//
//  Created by macfeel on 2019/4/29.
//  Copyright © 2019 macfeel. All rights reserved.
//

#import "TripleImgCell.h"

@implementation TripleImgCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = 0;
    if (ScreenWidth>375) {
        self.leftMargin.constant = 25.f;
        self.rightMargin.constant = 25.f;
    }
    // Initialization code
}

- (void)setCellWithPicArray:(NSArray *)pics{
    
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kPicServerUrl,pics[0]]];
    [self.leftImg sd_setImageWithURL:url placeholderImage:nil];
    
    NSURL *url1 = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kPicServerUrl,pics[1]]];
    [self.midImg sd_setImageWithURL:url1 placeholderImage:nil];
    
    NSURL *url2 = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",kPicServerUrl,pics[2]]];
    [self.rightImg sd_setImageWithURL:url2 placeholderImage:nil];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
